/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"BC92467D-B1CA-47D9-B08F-C82F4340D601"}
 */
function cambiarPass(event) {
	globals.formEnVentana('cambioPass', 'CAMBIO_PASS', 'Cambiar Contraseña')
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"5152512B-4985-41F9-96F9-945C936D4631"}
 */
function onShow(firstShow, event) {
	controller.loadRecords(globals.gUsuarioID)
	databaseManager.setAutoSave(false)
}

/**
 * Handle hide window.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"50385478-7470-448E-9832-81C7002A554B"}
 */
function onHide(event) {
	databaseManager.revertEditedRecords()
	databaseManager.setAutoSave(true)
	return true
}
